<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('Order/return')}">退款列表</a></li>
    </ul>

    <form class="well form-search" method="post" action="{:U('Order/return')}">
        订单编号  <input  type="text" name="order_num" style="width: 160px;" <if condition="$_POST['order_num'] neq null"> value="{$_POST['order_num']}" </if> placeholder="请输入订单编号">
        <input type="submit" class="btn btn-primary" value="筛选" />
        <a class="btn btn-danger" href="">清空</a>
    </form>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>排序</th>
            <th>订单号</th>
            <th>日期</th>
            <th width="100px;">订单金额</th>
            <th>联系人</th>
            <th>手机</th>
            <th>订单状态</th>
            <th width="200">操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="info" key="k" item="vo">
            <tr>
                <td>{$k+1}</td>
                <td>{$vo.order_num}</td>
                <td>{$vo.refund_time|date="Y-m-d H:i:s",###}</td>
                <td>￥{$vo.money}</td>
                <td>{$vo.user_name}</td>
                <td>{$vo.phone}</td>
                <if condition="$vo['status'] eq 6">
                    <td>待处理</td>
                    <elseif condition="$vo['status'] eq 7" />
                    <td>退款成功</td>
                    <elseif condition="$vo['status'] eq 8" />
                    <td>退款失败</td>
                </if>
                <td><a href="{:U('Order/detail_return',array('oid'=>$vo['id']))}">查看详情</a></td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>

<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>